<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>添加助管信息</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link href="css/style.css" rel="stylesheet">
</head>

<body>
    <!-- <div id="main-data" class="container"> -->
    <div id="main-data" class="">

        <div class="panel panel-default">
            <div class="panel-heading">补助信息管理</div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-sm-10">
                        <div class="col-sm-4">
                            <input v-model="query.stuId" type="text" class="form-control" placeholder="学号">
                        </div>
                        <div class="col-sm-4">
                            <input v-model="query.name" type="text" class="form-control" placeholder="姓名">
                        </div>
                    </div>
                    <div class="col-sm-2">
                        <button class="btn btn-default" v-on:click="queryData">查询</button>
                    </div>
                </div>
                <table class="table table-bordered mt-10">
                    <tr>
                        <th>学号</th>
                        <th>姓名</th>
                        <th>所在单位</th>
                        <th>科室</th>
                        <th>银行名称</th>
                        <th>银行卡号</th>
                        <th>联系电话</th>
                        <th>操作</th>
                    </tr>
                    <tr v-for="item in new_item">
                        <td>{{item.stuId}}</td>
                        <td>{{item.name}}</td>
                        <td>{{item.deptId}}</td>
                        <td>{{item.deptName}}</td>
                        <td>{{item.bank}}</td>
                        <td>{{item.bankNo}}</td>
                        <td>{{item.tel}}</td>
                        <td>
                            <button v-on:click="setItem(item)" class="btn btn-primary" data-toggle="modal" data-target="#myModal">加入</button>
                        </td>
                    </tr>
                </table>
                <nav>
                    <ul class="pagination">
                        <li v-bind:class="{'disabled': page.disabled, 'active': page.active }" v-for="page in pages"><a v-on:click="submitPage(page.content)">{{page.content}}</a></li>
                    </ul>
                </nav>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">已添加信息</div>
            <div class="panel-body">
                <table class="table table-bordered mt-10">
                    <tr>
                        <th>学号</th>
                        <th>姓名</th>
                        <th>所在单位</th>
                        <th>科室</th>
                        <th>银行卡号</th>
                        <th>联系电话</th>
                        <th>申请年月</th>
                        <th>申请金额</th>
                        <th>状态</th>
                    </tr>
                    <tr v-for="item in items" track-by="$index">
                        <td>{{item.stuId}}</td>
                        <td>{{item.name}}</td>
                        <td>{{item.depId}}</td>
                        <td>{{item.ks}}</td>
                        <td>{{item.bankNo}}</td>
                        <td>{{item.tel}}</td>
                        <td>{{item.helpDate}}</td>
                        <td>{{item.money}}</td>
                        <td>{{item.status}}</td>
                    </tr>
                </table>
                <div>
                    <button class="btn btn-default" v-on:click="submitData">提交</button>
                </div>
            </div>
        </div>
        <!-- 模态框（Modal） -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">申请</h4>
                    </div>
                    <div class="modal-body">
                        <label for="">年月：</label>
                        <input v-model="temp.helpDate" type="text" class="form-control" placeholder="格式：201606">
                        <label for="">薪资：</label>
                        <input v-model="temp.money" type="text" class="form-control" placeholder="">
                        <label for="">备注：</label>
                        <input v-model="temp.remark" type="text" class="form-control" placeholder="">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" v-on:click="join" class="btn btn-primary">提交更改</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal -->
        </div>
    </div>
</body>
<script type="text/javascript" src="js/dist/jquery-2.2.4.js"></script>
<script type="text/javascript" src="js/dist/bootstrap.min.js"></script>
<script type="text/javascript" src="js/dist/vue.js"></script>
<script type="text/javascript" data-main="js/buzhu.js" src="js/dist/require.js"></script>

</html>
